package com.ruicar.afs.cloud.account.common.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruicar.afs.cloud.account.common.condition.AccountVoucherInfoCondition;
import com.ruicar.afs.cloud.account.common.dto.AccountVoucherInfoDto;
import com.ruicar.afs.cloud.account.common.entity.AccountVoucherInfo;
import com.ruicar.afs.cloud.common.core.query.QueryCondition;
import com.ruicar.afs.cloud.account.common.dto.AccountVoucherDto;

import java.util.List;

/**
 * @author infinity
 * @version 1.0
 * @date 2020/7/5 19:17
 */
public interface AccountVoucherInfoService extends IService<AccountVoucherInfo> {

    AccountVoucherInfoDto getVoucherInfo(Long id);

    boolean reversal(Long id);

    boolean resend(Long id);

    String getVoucherNo();

    List<AccountVoucherDto> exportVoucherList(QueryCondition<AccountVoucherInfoCondition> condition);

    IPage getAccountVoucherInfoList(QueryCondition<AccountVoucherInfoCondition> condition);
}
